//
//  City.swift
//  Gaoloumi
//
//  Created by Jasper on 3/31/16.
//  Copyright © 2016 Jasper. All rights reserved.
//

import UIKit
import AVOSCloud

let kCityKeyName: String = "name"
let kCityKeyDescription: String = "descriptions"
let kCityKeyIconImage: String = "iconImage"
let kCityKeyMasterID: String = "masterID" // 版主
let kCityKeyReplyCount: String = "replyCount" // 回帖数
let kCityKeyTopicCount: String = "topicCount" // 主题数

class City: AVObject {

    @NSManaged var name: String?
    @NSManaged var descriptions: String?
    @NSManaged var iconImage:AVFile?
    @NSManaged var masterID: [AVUser]?
    @NSManaged var replyCount: Int
    @NSManaged var topicCount: Int
    
    static func parseClassName() -> String! {
        return "City"
    }
}
